﻿using testapi.Services;
using testapi.Models;

namespace testapi.Controllers
{
    public class tsetController : ControllerBase<test>
    {
        public tsetController(ServiceContext serviceContext) : base(serviceContext)
        {
        }


        protected override test UpdateBefore(test oldEntity, test model)
        {
            oldEntity.Name = model.Name;
            oldEntity.Email = model.Email;
            oldEntity.Age = model.Age;
            oldEntity.Gender = model.Gender;
            
            return base.UpdateBefore(oldEntity, model);
        }
    }
}
